<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Cabinet Admin</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
    <meta name="format-detection" content="telephone=no">
    <!--<script type="text/javascript" src="js/adaptive.js"></script>-->
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <link rel="stylesheet" href="../element-ui/index.ml.css">
    <script type="text/javascript" src="../js_code/jquery-3.6.1.min.js?v=2"></script>
    <script type="text/javascript" src="../element-ui/vue.js"></script>
    <!-- import JavaScript -->
    <script type="text/javascript" src="../element-ui/index.en.js"></script>

    <script src="../js_code/underscore-min.js"></script>
    <script src="../js_code/jquery-3.6.1.min.js"></script>
    <script src="../js_code/iotauth.js"></script>
    <script src="../js_code/kddemo.js"></script>
    <script>
        function refresh2() {
            window.location.reload();
        }
    </script>
    <style>
        .box-card {

            display: inline-block;
        }
    </style>
</head>
<body class="big_show">

<div>
<input id="base_url" value="https://api.bestwond.com" style="width: 200px;border-radius: 5px;">
<input id="app_id" value="" style="width: 200px;border-radius: 5px;">
<input id="app_secret" value="" style="width: 200px;border-radius: 5px;">

<button onclick="kd.get_device_list()">Get Device List</button></div>
<div id="app"
     class="screen_app">
    <el-card class="box-card" style="width: 300px;">
        <div slot="header" class="clearfix">
            <span>Select Device</span>
            <el-button style="float: right; padding: 3px 0" type="text" @click="kd.get_device_list()">Get Data</el-button>
        </div>
        <div id="device_list" style="display: inline-block;width: 260px;vertical-align: top"></div>
    </el-card>

    <el-card class="box-card" style="width: 900px;">
        <div slot="header" class="clearfix">
            <span>Box List</span>
        </div>
        <div id="device_box_list" style="display: inline-block">

        </div>
    </el-card>
</div>
</body>

<script>

    bw = new Vue({
        el: '#app',
        data: {
            loading: false
        },
        created: function () {

        },
        methods: {}
    });
</script>
</html>
